#include "YFree.h"

std::string yAesEncrypt(std::string content, std::string password)
{
  std::string result = "";
  return result;
}

std::string yAesDecrypt(std::string content, std::string password)
{
  std::string result = "";
  return result;
}

std::string yGetArgument(const flutter::MethodCall<> &method_call, std::string name)
{
  std::string param;
  const auto *arguments = std::get_if<flutter::EncodableMap>(method_call.arguments());
  if (arguments)
  {
    auto param_it = arguments->find(flutter::EncodableValue(name));
    if (param_it != arguments->end())
    {
      param = std::get<std::string>(param_it->second);
    }
  }
  return param;
}